package com.medical.acc.service;

import com.medical.common.paginator.domain.PageList;
import com.medical.acc.model.People;

import java.util.List;

/**
 * Created by Administrator on 2016/10/10.
 */
public interface PeopleService {
    PageList<People> searchList(String query, Integer page, Integer pageSize, String sortColumn, String sortDir);
    List<People> selectAllPeople();
    void savePeople(People people);
    People selectByPeopleId(String peopleId);
    void deletePeople(String peopleId);
    void updateByPrimaryKey(People people);
    void savePeopleOrganizationMap(String peopleId, String organizationId);
    void saveUserPeopleMap(String userId, String peopleId);
    List<People> selectByUserId(String userId);
    void bindUser(String peopleId, String userId);
    void unbindUser(String peopleId);
    void bindUserPeople(String peopleId, String userId);
    void unbindUserPeople(String peopleId, String userId);

}
